weighting the votes